﻿using NUnit.Framework;

namespace Dgg.LearnYourTools.NUnit.C_Assertions.c_Collections
{
	[TestFixture]
	public class _022_Equality
	{
		[Test]
		public void Collection_Equals()
		{
			Assert.That(new[] { 1, 2, 3, 4 }, Is.EqualTo(new[] { 1, 2, 3, 4 }));
		}

		[Test]
		public void Collection_Equivalent()
		{
			Assert.That(new[] { 1, 2, 3, 4 }, Is.EquivalentTo(new[] { 2, 1, 4, 3 }));
		}

		[Test]
		public void Collection_Subset()
		{
			Assert.That(new[] { 2, 4 }, Is.SubsetOf(new[] { 2, 1, 2, 3, 4, 3 }));
		}
	}
}
